<?php
/* @var $this NewsController */
/* @var $model News */
/* @var $form CActiveForm */
?>
<div class="row-fluid">
    <div class="span12 box">
        <div class="box-header blue-background">
            <div class="title">
                <div class="icon-edit"></div>
                Form News
            </div>
            <div class="actions">
<!--                <a href="#" class="btn box-remove btn-mini btn-link"><i class="icon-remove"></i>
                </a>-->
                <a href="#" class="btn box-collapse btn-mini btn-link"><i></i>
                </a>
            </div>
        </div>
        <div class="box-content">
            <?php
            $form = $this->beginWidget('CActiveForm', array(
                'id' => 'news-form',
                // Please note: When you enable ajax validation, make sure the corresponding
                // controller action is handling ajax validation correctly.
                // There is a call to performAjaxValidation() commented in generated controller code.
                // See class documentation of CActiveForm for details on this.
                'enableAjaxValidation' => false,
                'htmlOptions' => array(
                    'class' => 'form form-horizontal',
                )
            ));
            ?>
            <?php echo $form->errorSummary($model); ?>
            <div class="control-group">                    
                <?php echo $form->labelEx($model, 'name', array('class' => 'control-label')); ?>
                <div class="controls">
                    <?php echo $form->textField($model, 'name', array('size' => 60, 'maxlength' => 255)); ?>
                    <?php echo $form->error($model, 'name'); ?>
                </div>
            </div>
            <div class="control-group">
                <?php echo $form->labelEx($model, 'description', array('class' => 'control-label')); ?>
                <div class="controls">
                    <?php echo $form->textField($model, 'description', array('size' => 60, 'maxlength' => 500)); ?>
                    <?php echo $form->error($model, 'description'); ?>
                </div>
            </div>
            
           
            <hr class="hr-normal">
            <div class="control-group">
                <?php echo $form->labelEx($model, 'content', array('class' => 'control-label')); ?>
                <div class="controls">
                    
                    <?php echo $form->textField($model, 'content', array('size' => 60, 'maxlength' => 5000)); ?>
                    <?php echo $form->error($model, 'content'); ?>
                </div>
            </div>

            <div class="form-actions">
                <button class="btn btn-primary" type="submit">
                   
                    <i class="icon-save"></i>
                    <?php echo $model->isNewRecord ? 'Create' : 'Save' ?>
                </button>
                <a href="<?php echo $this->createUrl('/news/admin'); ?>">
                	<button class="btn" type="button">Cancel</button>
                </a>
            </div>

            <?php $this->endWidget(); ?>
        </div>
    </div>
</div>





